package cn.cnf.common.enums;

/**
 * @author ZhuMeiYi
 * @date 2020/12/3 17:39
 * @description
 */
public enum StatusCode {

    /**
     * 返回值状态码
     */
    SUCCESS(200, "响应成功"),
    WARN(406, "操作失败"),
    SYSTEM_ERROR(500, "系统错误");
    private Integer code;
    private String message;

    StatusCode(Integer status, String message) {
        this.code = status;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
